// @APIVersion 1.0.0
// @Title 李彬的文档
// @Description 只给学生用
// @Contact astaxie@gmail.com
package routers

import (
	"chuanyou444/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	ns := beego.NewNamespace("/v1",

		beego.NSNamespace("/classmates",
			beego.NSInclude(
				&controllers.ClassmatesController{},
			),
		),

		beego.NSNamespace("/logs",
			beego.NSInclude(
				&controllers.LogsController{},
			),
		),

		beego.NSNamespace("/records",
			beego.NSInclude(
				&controllers.RecordsController{},
			),
		),

		beego.NSNamespace("/teacher",
			beego.NSInclude(
				&controllers.TeacherController{},
			),
		),

		// beego.NSNamespace("/manager",
		// 	beego.NSInclude(
		// 		&controllers.ManagerController{},
		// 	),
		// ),
	)
	beego.AddNamespace(ns)
}
